import LayoutMain from '@/layout';
import setting from '@/setting';
let routePre = setting.routePre;

const pre = 'dishes_';

export default {
    path: routePre + '/dishes',
    name: 'dishes',
    header: 'dishes',
    redirect: {
        name: `${pre}list`,
    },
    component: LayoutMain,
    children: [
        {
            path: 'category',
            name: `${pre}category`,
            meta: {
                auth: ['admin-dishes-category'],
                title: '菜品分类管理',
            },
            component: () => import('@/pages/dishes/category'),
        },
        {
            path: 'list',
            name: `${pre}list`,
            meta: {
                auth: ['admin-dishes-index'],
                title: '菜品管理',
            },
            component: () => import('@/pages/dishes/index'),
        },
    ],
};
